<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-11-09 10:47:13
         compiled from "H:\WebApplication\myconpany\sumi_mobile\application\views\supply\index.html" */ ?>
<?php /*%%SmartyHeaderCode:30052561b7b4bb0b483-64472631%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'af430513e8f4992a8081116d01b63f4be458272e' => 
    array (
      0 => 'H:\\WebApplication\\myconpany\\sumi_mobile\\application\\views\\supply\\index.html',
      1 => 1447037221,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '30052561b7b4bb0b483-64472631',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_561b7b4bd3b077_91607733',
  'variables' => 
  array (
    'list' => 0,
    'item' => 0,
    'links' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_561b7b4bd3b077_91607733')) {function content_561b7b4bd3b077_91607733($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/header.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--header stop-->
<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/common/headersearch.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--header end-->


<?php echo '<script'; ?>
 type="text/javascript">
    /* 搜索按钮 */
    $('.ls-btn').click(function(){
        var keyword = $('input[name=keyword]').val();

        if(keyword == '') return;
        if(!$.trim(keyword)) {
            return;
        }
        searchKD(keyword);
    });

    function searchKD(keyword)
    {
        var url = "/supply/index/keyword/"+keyword;
        window.location = url;
    }
<?php echo '</script'; ?>
>


<div class="wp_fixed" style="top:48px;">
<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/common/headerMenu.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>



<section class="wrap">

    <!--content stop-->

    <section class="list-filter">

        <!--<ul class="list-filter-m">-->
            <!--<li><a href="/supply/index"><span>默认</span></a></li>-->

            <!--<li><a href="/supply/index/orderByPrice/"><span class="sort">价格</span></a></li>-->

            <!--<li><a href="#"><span class="sort">数量</span></a></li>-->



            <!--<li><a href="#"><span>筛选</span></a></li>-->
        <!--</ul>-->

        <section class="hot-commodity">
            <div style="width:100%;" id="swiper-container3" class="swiper-container">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <table class="ssw_tab">
                            <tr>
                                <th class="gb">公司名称</th>
                                <th class="gb">联系人</th>
                                <th class="gb">电话</th>
                                <th class="gb">更新时间</th>
                                <th class="gb"></th>
                            </tr>
                            <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
                            <tr href="/supply/shoplist/id/<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
">
                                <td><span class="ptm2"><?php echo $_smarty_tpl->tpl_vars['item']->value['business_name'];?>
</span></td>
                                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['contacts'];?>
</td>
                                <td class="orange"><?php echo $_smarty_tpl->tpl_vars['item']->value['mobile'];?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['item']->value['update_time'];?>
</td>
                                <td><img src="/images/icons5.png" width="50%"/></td>
                            </tr>
                            <?php } ?>

                        </table>
                    </div>

                </div>
            </div>
            <div class="page">
                <?php echo $_smarty_tpl->tpl_vars['links']->value;?>

            </div>
        </section>
    </section>

    <!--content end-->
    

</section>
</div>
<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/common/footerlogin.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<?php echo '<script'; ?>
 type="text/javascript">
    $(function(){
        $('.list-filter-c-category li').click(function(){
            oIndex = $(this).index();
            $('.categories').show();
            $('.layer-mask').show();
            $('.categories>ul').eq(oIndex).show().siblings().hide();
            $('.categories').animate({right:'0'},500);
            $('.wrap').animate({marginLeft:'-50%'},500);
        });

        $('.categories li').click(function(){
            var aText = $(this).text();
            var aIndex= $(this).parents('ul').attr('num');


            $('.categories').animate({right:'-50%'},500);
            $('.wrap').animate({marginLeft:'0'},500,function(){
                $('.list-filter-c-category li').eq(aIndex).find('span').text(aText);
                $('.layer-mask').hide();
                $('.categories').hide();
            });



        });

    });
    $(function(){
        $('.ssw_tab tr').not(":first").click(function(){
            window.location.href=$(this).attr('href');
        });
    });

    $(function(){


        var iNow = true;
        $('.list-filter-m .sort').click(function(){
            if(iNow){
                $(this).addClass('curr');
            }else{
                $(this).removeClass('curr');
            }
            iNow =!iNow;

        });

    });
<?php echo '</script'; ?>
>

<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/common/footerlogin.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/footer.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php }} ?>
